package com.xuecheng.learning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.learning.model.dto.ChooseCourseDto;
import com.xuecheng.learning.model.po.ChooseCourse;
import com.xuecheng.learning.model.po.CourseTables;

public interface ChooseCourseService extends IService<ChooseCourse> {
    /**
     * 学生选课
     * @param courseId
     * @param userId
     * @return
     */
    ChooseCourseDto chooseCourse(Long courseId, Long userId);

    /**
     * 根据选课记录将课程添加到我的课程表
     * @param chooseCourse
     * @return
     */
    CourseTables addCourseTables(ChooseCourse chooseCourse);
}
